package com.fjnldx.mes.service.workerRecord;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjnldx.mes.domain.domainReq.EmploymentHistoryDataReq;
import com.fjnldx.mes.domain.domainRes.EmploymentHistoryDataRes;
import com.fjnldx.mes.domain.domainRes.Result;
import com.fjnldx.mes.mapper.workerRecord.WorkerRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WorkerRecordService {

    @Autowired
    private WorkerRecordMapper workerRecordMapper;


    public Result getEmploymentHistoryData(EmploymentHistoryDataReq employmentHistoryDataReq, Page page) {
        IPage<EmploymentHistoryDataRes> result = workerRecordMapper.getEmploymentHistoryData(employmentHistoryDataReq, page);
        return Result.success(result);
    }
}
